package task09;

import java.util.Scanner;

/**
 * @author Administrator
 * 任意输入一整数，求它的位数
 */
public class Test2 {
    public static void main(String[] args) {
        System.out.println("请输入任意一整数：");
        Scanner scanner=new Scanner(System.in);
        int x=scanner.nextInt();
        int count=0;
        while (x>0){
            x=x/10;
            count++;
        }
        System.out.println(count);
    }
}
